package com.bix.util.blizfiles.dbc.impl;

import com.bix.util.blizfiles.dbc.DBCFile;
import com.bix.util.blizfiles.dbc.DBCRecord;
import com.bix.util.blizfiles.dbc.DBCRecordField;
import com.bix.util.blizfiles.dbc.FloatDBCRecordField;
import com.bix.util.blizfiles.dbc.IntegerDBCRecordField;
import com.bix.util.blizfiles.dbc.ReferenceIndexDBCRecordField;
import com.bix.util.blizfiles.dbc.StringDBCRecordField;

/**
 * This is the representation of a record in the CreatureDisplayInfo.dbc file.
 * 
 *	@author squid
 *
 *	@version	1.0.0
 */
public class CreatureDisplayInfo extends DBCRecord {
	public CreatureDisplayInfo (DBCFile<CreatureDisplayInfo> dbc) {
		super ();
		
		this.fields = new DBCRecordField[] {
				new IntegerDBCRecordField ("id"),
				new ReferenceIndexDBCRecordField ("creatureModelDataDbcId", "CreatureModelData.dbc"),
				new ReferenceIndexDBCRecordField ("creatureModelDataDbcId2", "CreatureModelData.dbc"),
				new ReferenceIndexDBCRecordField ("creatureDisplayInfoExtraDbcId", "CreatureDisplayInfoExtra.dbc"),
				new FloatDBCRecordField   ("scale"),
				new IntegerDBCRecordField ("opacity"),
				new StringDBCRecordField  ("skin1"),
				new StringDBCRecordField  ("skin2"),
				new StringDBCRecordField  ("skin3"),
				new StringDBCRecordField  ("icon"),
				new IntegerDBCRecordField ("unknown1"),
				new IntegerDBCRecordField ("unknown2"),
				new ReferenceIndexDBCRecordField ("npcSoundsDbcId", "NPCSounds.dbc"),
				new IntegerDBCRecordField ("unknown3"),
				new IntegerDBCRecordField ("unknown4"),
				new IntegerDBCRecordField ("unknown5")
		};

		super.read (dbc);
	}
}
